package com.hhl.jvm.hotspot.src.share.vm.classfile;

import com.hhl.jvm.hotspot.src.share.vm.oops.InstanceKlass;

/**
 * @author Bei·S·J on 2021/6/24 下午8:10
 */
public class BootClassLoader {
    /**
     *  main函数所在的类在此保存一份引用，方便快速定位到
     */
    private static InstanceKlass mainKlass = null;
    public static InstanceKlass loadMainKlass(String name) {
        if (null != mainKlass) {
            return mainKlass;
        }
        return loadKlass(name);
    }

    private static InstanceKlass loadKlass(String name) {
        return loadKlass(name, true);
    }

    private static InstanceKlass loadKlass(String name, boolean resolve) {
        InstanceKlass klass = null;
        return klass;
    }
}
